<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<h2>목록</h2>

<form id="form" name="form" method="get" action="/member/list.html">
<table>
	<tr>
		<th>키워드</th>
		<td><input type="text" name="keyword" value="${search.keyword}" /></td>
		<td><input type="submit" value="검색"/></td>
	</tr>
</table>
</form>

<table>
	<tr>
		<th>프로필사진</th>
		<th>핸드폰 번호</th>
		<th>닉네임</th>
		<th>등록일</th>
	</tr>
	<c:forEach items="${memberList}" var="each">
	<tr>
		<td><img src="${each.profileImageUrl}" width="80" height="60"></td>
		<td><a href="/member/view.html?id=${each.id}">${each.phoneNo}</a></td>
		<td>${each.nickname}</td>
		<td>${each.registerDate}</td>
	</tr>	
	</c:forEach>
</table>
<div>
<p><a href="/member/form.html">등록</a></p>
</div>